<div class="left-sidebar-scroll">
    <div class="left-sidebar-content">
        <ul class="sidebar-elements">


            {{--@foreach(app('hd-menu')->all() as  $k=>$v)--}}

            {{--这个是获得当前模块菜单，读的你所在模块下config\menus.php的文件--}}
            @foreach(\HDModule::getMenuByModule() as $k=>$v)
            <li class="divider">{{$k}}</li>

            <li class="parent open">
                <a href="#"><i class="icon mdi mdi-face"></i><span>{{$v["title"]}}</span></a>
                <ul class="sub-menu">

                @foreach($v["menus"] as $kkk=>$vvv)

                        @if(\HDModule::hadPermission($vvv['permission'],'admin'))
                    <li>
                        <a href="{{$vvv["url"]}}" pjax>{{$vvv["title"]}}</a>
                    </li>
                    @endif

                    @endforeach

                </ul>
            </li>

                {{--循环结束下一步：写中间件--}}
            @endforeach






            <li class="divider">技术支持</li>
            <li class="parent"><a href="#"><i class="icon mdi mdi-view-web"></i><span>支持</span></a>
                <ul class="sub-menu">
                    <li>
                        <a href="layouts-primary-header.html">视频教程</a>
                    </li>
                    <li>
                        <a href="layouts-success-header.html">访问官网</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>